var angular = require('angular');
var core = require('../core');
var dishRoutes = require('./routes/dish.routes');
var navbarConfig = require('./configs/navbar.config');
var dishService = require('./services/dish.service');
var dishCtrl = require('./controller/dish.controller');
var fileDirective = require('../core/directives/file.directives');

const moduleName = 'dish';

angular.module(moduleName, [core])
    .directive('fileModel',fileDirective)
    .factory('dishService', dishService)
    .controller('dishCtrl', dishCtrl)
    .config(dishRoutes)
    .run(navbarConfig);

module.exports = moduleName;